package com.ply.flashsalessystem.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.StoreAmount;
import com.ply.flashsalessystem.entity.vo.UserAmountVo;
import com.ply.flashsalessystem.entity.wrapper.StoreAmountWrapper;
import com.ply.flashsalessystem.mapper.StoreAmountMapper;
import com.ply.flashsalessystem.service.StoreAmountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
@Service
public class StoreAmountServiceImpl extends ServiceImpl<StoreAmountMapper, StoreAmount> implements StoreAmountService {
    @Autowired
    StoreAmountMapper storeAmountMapper;


    /**
     * 分页条件查询 店家 流水
     * @param current
     * @param limit
     * @param storeAmountWrapper
     * @return
     */
    @Override
    public Page<UserAmountVo> getAmount(Integer current, Integer limit, StoreAmountWrapper storeAmountWrapper) {
        return storeAmountMapper.getAmount(new Page<>(current,limit),storeAmountWrapper);
    }
}
